package com.pet.server.po;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * Article entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "article_temp")
public class ArticleTemp implements java.io.Serializable {

	// Fields

	private Integer articleId;
	private String icoPath;
	private String title;
	private String description;
	private String text;
	private Date createTime;
	private String state;
	private String cate;
	private String petCate;
	private String petBrand;
	private Integer subjectId;
	private String ageCate;
	private String viewType;
	private String image1;
	private String image2;
	private String image3;
	
	// Constructors

	/** default constructor */
	public ArticleTemp() {
	}

	
	public ArticleTemp(Integer articleId, String icoPath, String title,
			String description, String text, Date createTime, String state,
			String cate, String petCate, String petBrand, Integer subjectId,
			String ageCate, String viewType, String image1, String image2,
			String image3) {
		super();
		this.articleId = articleId;
		this.icoPath = icoPath;
		this.title = title;
		this.description = description;
		this.text = text;
		this.createTime = createTime;
		this.state = state;
		this.cate = cate;
		this.petCate = petCate;
		this.petBrand = petBrand;
		this.subjectId = subjectId;
		this.ageCate = ageCate;
		this.viewType = viewType;
		this.image1 = image1;
		this.image2 = image2;
		this.image3 = image3;
		
	}


	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "article_id", unique = true, nullable = false)
	public Integer getArticleId() {
		return this.articleId;
	}

	public void setArticleId(Integer articleId) {
		this.articleId = articleId;
	}

	@Column(name = "ico_path", length = 128)
	public String getIcoPath() {
		return this.icoPath;
	}

	public void setIcoPath(String icoPath) {
		this.icoPath = icoPath;
	}

	@Column(name = "title", length = 128)
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	
	@Column(name = "description", length = 256)
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "text", length = 65535)
	public String getText() {
		return this.text;
	}

	public void setText(String text) {
		this.text = text;
	}

	@Column(name = "create_time", nullable = false, length = 0)
	public Date getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@Column(name = "state", length = 1)
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	@Column(name = "cate", length = 32)
	public String getCate() {
		return cate;
	}

	public void setCate(String cate) {
		this.cate = cate;
	}
	@Column(name = "pet_cate", length = 128)
	public String getPetCate() {
		return petCate;
	}

	public void setPetCate(String petCate) {
		this.petCate = petCate;
	}
	@Column(name = "age_cate", length = 128)
	public String getAgeCate() {
		return ageCate;
	}

	public void setAgeCate(String ageCate) {
		this.ageCate = ageCate;
	}

	@Column(name = "view_type", length = 16)
	public String getViewType() {
		return viewType;
	}

	public void setViewType(String viewType) {
		this.viewType = viewType;
	}
	@Column(name = "image1", length = 128)
	public String getImage1() {
		return image1;
	}

	public void setImage1(String image1) {
		this.image1 = image1;
	}
	@Column(name = "image2", length = 128)
	public String getImage2() {
		return image2;
	}

	public void setImage2(String image2) {
		this.image2 = image2;
	}
	@Column(name = "image3", length = 128)
	public String getImage3() {
		return image3;
	}

	public void setImage3(String image3) {
		this.image3 = image3;
	}
	@Column(name = "pet_brand", length = 20)
	public String getPetBrand() {
		return petBrand;
	}

	public void setPetBrand(String petBrand) {
		this.petBrand = petBrand;
	}
	
	@Column(name = "subject_id", length = 20)
	public Integer getSubjectId() {
		return subjectId;
	}

	public void setSubjectId(Integer subjectId) {
		this.subjectId = subjectId;
	}
	
	
}